﻿using System;
using System.Text;
/*
    A company has name, address, phone number, fax number, web site and manager. The manager has first name, 
    last name, age and a phone number.
    Write a program that reads the information about a company and its manager and prints it back on the console.
 */
class PrintCompanyInformation
{
    static void Main()
    {
        string companyName;
        string address;
        string phoneNumber;
        string faxNumber;
        string webSite;
        string manager;
        string managerFirstName;
        string managerLastName;
        string managerAge;
        string managerPhoneNumber;

        //add info - company
        Console.WriteLine();
        Console.WriteLine(new string('-', 15));
        Console.WriteLine("Company info");
        Console.WriteLine(new string('-', 15));

        //info - company
        Console.WriteLine("Company name: ");
        companyName = Console.ReadLine();
        Console.WriteLine("Company address: ");
        address = Console.ReadLine();
        Console.WriteLine("Company phone number: ");
        phoneNumber = Console.ReadLine();
        Console.WriteLine("Company fax number: ");
        faxNumber = Console.ReadLine();
        Console.WriteLine("Company web site: ");
        webSite = Console.ReadLine();
        
        //add info - manager
        Console.WriteLine();        
        Console.WriteLine(new string('-', 15));
        Console.WriteLine("Manager Details");
        Console.WriteLine(new string('-', 15));

        //info - manager
        Console.WriteLine("Manager`s first name: ");
        managerFirstName = Console.ReadLine();
        Console.WriteLine("Manager`s last name: ");
        managerLastName = Console.ReadLine();
        Console.WriteLine("Manager`s age: "); 
        managerAge = Console.ReadLine();
        Console.WriteLine("Manager`s phone number: ");
        managerPhoneNumber = Console.ReadLine();
        manager = managerFirstName + " " + managerLastName;

        //Print all data - summary
        Console.WriteLine();
        Console.WriteLine(new string('-', 15));
        Console.WriteLine("Summary: ");
        Console.WriteLine(new string('-', 15));
        Console.WriteLine();

        Console.WriteLine(companyName);
        Console.WriteLine("Address: " + address);
        Console.WriteLine("Tel." + phoneNumber);
        Console.WriteLine("Fax:" + faxNumber);
        Console.WriteLine("Web site: " + webSite);
        Console.WriteLine("Manager: {0}(age: {1}, tel. {2})", manager, managerAge, managerPhoneNumber);
            
            
            
            
            
            


    }
}
